import React from 'react';
import CodeCell from './CodeCell';
import escape from 'lodash.escape';
// 对codeCell匹配到语法服务位置信息时，进行高亮处理，删除了语法服务，其他不知是否可删
export default class CodeCellWithGram extends React.PureComponent {
  render() {
    /* eslint-disable no-unused-vars */
    const { text, html } = this.props;
    /* eslint-enable no-unused-vars */
    const curHtml = html || escape(text);
    return <CodeCell {...this.props} html={curHtml} />;
  }
}
